package com.ck.data.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ck.data.annotation.Sensitive;
import com.ck.data.common.PrivacyTypeEnum;
import lombok.Data;

import java.io.Serializable;

/**
 * @author ck
 * @date 2023/11/7 14:24
 */
@Data
@TableName("user_info")
public class UserInfoEntity implements Serializable {

    private int id;
    @Sensitive(type = PrivacyTypeEnum.CHINESE_NAME)
    private String name;

    @Sensitive(type = PrivacyTypeEnum.PASSWORD)
    private String password;

    @Sensitive(type = PrivacyTypeEnum.PHONE)
    private String phone;
    @Sensitive(type = PrivacyTypeEnum.ID_CARD)
    private String idCard;
}
